Remove usage of deprecated GtkTooltips API. Use
authorJaap Haitsma <jaap@haitsma.org>
Mon, 9 Jul 2007 17:48:06 +0000 (17:48 +0000)
committerJaap A. Haitsma <jhaitsma@src.gnome.org>
Mon, 9 Jul 2007 17:48:06 +0000 (17:48 +0000)
2007-07-09  Jaap Haitsma  <jaap@haitsma.org>

* gtk/gtkstatusicon.c: Remove usage of deprecated GtkTooltips API. Use
gtk_widget_set_tooltip_text instead

svn path=/trunk/; revision=18411

ChangeLog
gtk/gtkstatusicon.c

index be27e793aa861edd55a10a6e38cee5b2a111c56b..6278bb8247c968f745d07621a55fd0d6f9a9de59 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-09  Jaap Haitsma  <jaap@haitsma.org>
+
+       * gtk/gtkstatusicon.c: Remove usage of deprecated GtkTooltips API. Use
+       gtk_widget_set_tooltip_text instead
+
 2007-07-09  Johan Dahlin  <jdahlin@async.com.br>
 
        * gtk/gtktooltip.c:
index 5355183f915c55a78ebb57f657d887f0a76821f2..3bc3fff8c0dc94b706b102b09d838079daa142f1 100755 (executable)
@@ -35,7 +35,6 @@
 #include "gtkintl.h"
 #include "gtkiconfactory.h"
 #include "gtkmarshalers.h"
-#include "gtktooltips.h"
 #include "gtktrayicon.h"
 
 #include "gtkprivate.h"
@@ -93,7 +92,6 @@ struct _GtkStatusIconPrivate
 #ifdef GDK_WINDOWING_X11
   GtkWidget    *tray_icon;
   GtkWidget    *image;
-  GtkTooltips  *tooltips;
 #endif
 
 #ifdef GDK_WINDOWING_WIN32
@@ -505,8 +503,6 @@ gtk_status_icon_init (GtkStatusIcon *status_icon)
   g_signal_connect_swapped (priv->image, "size-allocate",
                            G_CALLBACK (gtk_status_icon_size_allocate), status_icon);
 
-  status_icon->priv->tooltips = gtk_tooltips_new ();
-  g_object_ref_sink (priv->tooltips);
 #endif
 
 #ifdef GDK_WINDOWING_WIN32
@@ -600,10 +596,6 @@ gtk_status_icon_finalize (GObject *object)
   priv->blank_icon = NULL;
 
 #ifdef GDK_WINDOWING_X11
-  if (priv->tooltips)
-    g_object_unref (priv->tooltips);
-  priv->tooltips = NULL;
-
   gtk_widget_destroy (priv->tray_icon);
 #endif
 
@@ -1601,8 +1593,9 @@ gtk_status_icon_set_tooltip (GtkStatusIcon *status_icon,
   priv = status_icon->priv;
 
 #ifdef GDK_WINDOWING_X11
-  gtk_tooltips_set_tip (priv->tooltips, priv->tray_icon,
-                       tooltip_text, NULL);
+
+  gtk_widget_set_tooltip_text (priv->tray_icon, tooltip_text);
+
 #endif
 #ifdef GDK_WINDOWING_WIN32
   if (tooltip_text == NULL)